/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.bm.console.pojo;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.sys.object.common.page.Page;

public class WebCityTemperature extends Page implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	//alias
	public static final String TABLE_ALIAS = "WebCityTemperature";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_TYPE = "类型,1平均最低温度,2平均最高温度";
	public static final String ALIAS_CITY_ID = "城市ID";
	public static final String ALIAS_JAN = "一月";
	public static final String ALIAS_FEB = "二月";
	public static final String ALIAS_MAR = "三月";
	public static final String ALIAS_APR = "四月";
	public static final String ALIAS_MAY = "五月";
	public static final String ALIAS_JUN = "六月";
	public static final String ALIAS_JUL = "七月";
	public static final String ALIAS_AUG = "八月";
	public static final String ALIAS_SEP = "九月";
	public static final String ALIAS_OCT = "十月";
	public static final String ALIAS_NOV = "十一月";
	public static final String ALIAS_DEC = "十二月";
	public static final String ALIAS_STATUS = "状态";
	public static final String ALIAS_CREATE_TIME = "创建时间";
	public static final String ALIAS_UPDATE_TIME = "修改时间";
	public static final String ALIAS_CREATE_ID = "创建者ID";
	public static final String ALIAS_UPDATE_ID = "修改者ID";
	
	//date formats
	//public static final String FORMAT_CREATE_TIME = DATE_FORMAT;
	//public static final String FORMAT_UPDATE_TIME = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * id       db_column: id 
     */	
	//
	private Long id;
    /**
     * 类型,1平均最低温度,2平均最高温度       db_column: type 
     */	
	//
	private Integer type;
    /**
     * 城市ID       db_column: city_id 
     */	
	//
	private Long cityId;

	private String cityName;
    /**
     * 一月       db_column: jan 
     */	
	//
	private Double jan;
    /**
     * 二月       db_column: feb 
     */	
	//
	private Double feb;
    /**
     * 三月       db_column: mar 
     */	
	//
	private Double mar;
    /**
     * 四月       db_column: apr 
     */	
	//
	private Double apr;
    /**
     * 五月       db_column: may 
     */	
	//
	private Double may;
    /**
     * 六月       db_column: jun 
     */	
	//
	private Double jun;
    /**
     * 七月       db_column: jul 
     */	
	//
	private Double jul;
    /**
     * 八月       db_column: aug 
     */	
	//
	private Double aug;
    /**
     * 九月       db_column: sep 
     */	
	//
	private Double sep;
    /**
     * 十月       db_column: oct 
     */	
	//
	private Double oct;
    /**
     * 十一月       db_column: nov 
     */	
	//
	private Double nov;
    /**
     * 十二月       db_column: dec 
     */	
	//
	private Double dec;
    /**
     * 状态       db_column: status 
     */	
	//
	private Boolean status;
    /**
     * 创建时间       db_column: create_time 
     */	
	//
	private java.util.Date createTime;
    /**
     * 修改时间       db_column: update_time 
     */	
	//
	private java.util.Date updateTime;
    /**
     * 创建者ID       db_column: create_id 
     */	
	//
	private Long createId;
    /**
     * 修改者ID       db_column: update_id 
     */	
	//
	private Long updateId;
	//columns END

	public WebCityTemperature(){
	}

	public WebCityTemperature(
		Long id
	){
		this.id = id;
	}


	public void setId(Long value) {
		this.id = value;
	}
	
	public Long getId() {
		return this.id;
	}

	public void setType(Integer value) {
		this.type = value;
	}
	
	public Integer getType() {
		return this.type;
	}

	public void setCityId(Long value) {
		this.cityId = value;
	}
	
	public Long getCityId() {
		return this.cityId;
	}

	public void setJan(Double value) {
		this.jan = value;
	}
	
	public Double getJan() {
		return this.jan;
	}

	public void setFeb(Double value) {
		this.feb = value;
	}
	
	public Double getFeb() {
		return this.feb;
	}

	public void setMar(Double value) {
		this.mar = value;
	}
	
	public Double getMar() {
		return this.mar;
	}

	public void setApr(Double value) {
		this.apr = value;
	}
	
	public Double getApr() {
		return this.apr;
	}

	public void setMay(Double value) {
		this.may = value;
	}
	
	public Double getMay() {
		return this.may;
	}

	public void setJun(Double value) {
		this.jun = value;
	}
	
	public Double getJun() {
		return this.jun;
	}

	public void setJul(Double value) {
		this.jul = value;
	}
	
	public Double getJul() {
		return this.jul;
	}

	public void setAug(Double value) {
		this.aug = value;
	}
	
	public Double getAug() {
		return this.aug;
	}

	public void setSep(Double value) {
		this.sep = value;
	}
	
	public Double getSep() {
		return this.sep;
	}

	public void setOct(Double value) {
		this.oct = value;
	}
	
	public Double getOct() {
		return this.oct;
	}

	public void setNov(Double value) {
		this.nov = value;
	}
	
	public Double getNov() {
		return this.nov;
	}

	public void setDec(Double value) {
		this.dec = value;
	}
	
	public Double getDec() {
		return this.dec;
	}

	public void setStatus(Boolean value) {
		this.status = value;
	}
	
	public Boolean getStatus() {
		return this.status;
	}

	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}
	
	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}

	public void setCreateId(Long value) {
		this.createId = value;
	}
	
	public Long getCreateId() {
		return this.createId;
	}

	public void setUpdateId(Long value) {
		this.updateId = value;
	}
	
	public Long getUpdateId() {
		return this.updateId;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Type",getType())
			.append("CityId",getCityId())
			.append("Jan",getJan())
			.append("Feb",getFeb())
			.append("Mar",getMar())
			.append("Apr",getApr())
			.append("May",getMay())
			.append("Jun",getJun())
			.append("Jul",getJul())
			.append("Aug",getAug())
			.append("Sep",getSep())
			.append("Oct",getOct())
			.append("Nov",getNov())
			.append("Dec",getDec())
			.append("Status",getStatus())
			.append("CreateTime",getCreateTime())
			.append("UpdateTime",getUpdateTime())
			.append("CreateId",getCreateId())
			.append("UpdateId",getUpdateId())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof WebCityTemperature == false) return false;
		if(this == obj) return true;
		WebCityTemperature other = (WebCityTemperature)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
}

